package com.liu.designmode.proxy.type;

import java.sql.PreparedStatement;
import java.sql.SQLException;

public class StringTypeHandler implements TypeHandler<String>{
    @Override
    public void setParameter(PreparedStatement ps, int idx, String val) {
        try {
            ps.setString(idx, val);
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }
    }
}
